package FrameWork;


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.D921A24F-F6B1-C916-7448-2B8C1A9FA6E5]
// </editor-fold> 
public class Item extends WEEObject {

           int type;
        int ID;     // id of the item
        int senderID;   // source id 
        int receiverID; // desination id
        String Data;    // the data in the message 
        boolean encryptionEnabled;  // is encryption enabled for 
        boolean encrypted;          // is the data in this item encryoted or not
        // setters and getters 
        public void setType(int t)
        {
            type = t;
        }
        public int getType()
        {
            return type;
        }
        //
        public void setID(int id)
        {
            ID = id;
        }
        public int getID()
        {
            return ID;
        }
        //
        public void setSenderID(int sid)
        {
            senderID = sid;
        }
        public int getSenderID()
        {
            return senderID;
        }
        //
        public void setReceiverID(int rid)
        {
            receiverID = rid;
        }
        public int getReceiverID()
        {
            return receiverID;
        }
        // 
        public void setData(String dta)
        {
            Data = dta;
        }
        public String getData()
        {
            
            return Data;
            
        }
        //
        public void setEncryptionEnabled(boolean flag)
        {
            encryptionEnabled = flag;
        }
        public boolean getEncryptionEnabled()
        {
            return encryptionEnabled;
        }
        //
        public void setEncrypted(boolean flag)
        {
            encrypted = flag;
        }
        public boolean getEncrypted()
        {
            return encrypted;
        }

    }